x86/hvm: Drop more remains of the PVHv1 implementation
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Jun 2017 10:30:00 +0000 (11:30 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 19 Jul 2017 14:25:09 +0000 (15:25 +0100)
commit5efaeaa8235d9f16fa2711efe22b8f2bd54a182b
tree8fdfc6a1c1b8cefad5c04ce2178a98378ba1cee3
parent0943a03037418e6e40cdd420f2472bbf9afae7a2
x86/hvm: Drop more remains of the PVHv1 implementation

These functions don't need is_hvm_{vcpu,domain}() predicates.

hvmop_set_evtchn_upcall_vector() does need the predicate to prevent a PV
caller accessing the hvm union, but swap the copy_from_guest() and
is_hvm_domain() predicate to avoid reading the hypercall parameter if we not
going to use it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/hvm/hvm.c